package com.heiye.blog.ai.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.heiye.blog.ai.domain.dos.RoleSoundDO;

import java.util.List;

/**
 * @author: heiye
 * @date: 2025/11/06 下午6:06
 * @version: v1.0.0
 * @description: TODO
 */
public interface RobotSoundMapper extends BaseMapper<RoleSoundDO> {

    /**
     * 根据智能体 ID 查询智能体声音列表
     *
     * @param robotId
     * @return
     */
    default List<RoleSoundDO> selectByRobotId(Long robotId) {
        return selectList(Wrappers.<RoleSoundDO>lambdaQuery()
                .eq(RoleSoundDO::getRoleId, robotId));
    }
}
